package org.ssh.dao.impl;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import org.springframework.orm.hibernate3.HibernateCallback;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;



import org.ssh.dao.IAssetDao;
import org.ssh.pojo.Asset;
import org.ssh.pojo.Assetallocation;

public class AssetDao extends BaseDao implements IAssetDao{
	public int changestate(Asset asset) {
		// TODO Auto-generated method stub
			try {
				getHibernateTemplate().saveOrUpdate(asset);
				return 1;
				
			} catch (Exception e) {
				// TODO: handle exception
			}
			return 0;
		}




}